package com.esyoga.yoyoga.handler;

import com.esyoga.yoyoga.pojo.TOrder;
import com.esyoga.yoyoga.service.CoachOrderService;
import lombok.Data;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Data
@Controller
@RequestMapping("/coachCentre")
public class CoachOrderHandler {
    @Resource
    private CoachOrderService coachOrderService;

    @RequestMapping("/Order")
    @ResponseBody
    public List<TOrder> showOrder(Integer tId){

        return coachOrderService.showOrder(tId);
    }

}
